<h2>DESCRIPTION</h2>

<em>d.rast.leg</em> shows a raster map along with its legend.
It first clears the entire screen, then divides it 
into a main (left) and a minor (right) frames, and displays a raster 
map in the main frame and the map legend in the minor frame. The main
frame remains active when the program finishes.

<h2>NOTES</h2>

The legend may be flipped with the <b>-f</b> flag.
<p>If the <b>lines</b> parameter is not given then the legend frame will 
display as many lines as number of categories in the map, otherwise, it 
will display the first <b>lines</b> minus 1 categories with the
rest being truncated.
<p>The user may adjust the <b>lines</b> parameter or
the size of graphics window to get an appropriate result.

<p>The user may specify a second raster map with the <b>raster</b> parameter from
which the legend is generated. This is useful to visualize (time) series of
raster maps with a common static legend instead of the default dynamic legend.
<p>To remove all frames when clearing the display, use
<tt>d.erase -f</tt>.

<h2>EXAMPLE</h2>

In this example, the polar diagram of the 'aspect' angle map in the
North Carolina sample dataset location is generated:

<div class="code"><pre>
g.region raster=landclass96 -p
d.rast.leg landclass96
</pre></div>

<h2>SEE ALSO</h2>

<em>
<a href="d.legend.html">d.legend</a>,
<a href="d.erase.html">d.erase</a>,
<a href="d.rast.html">d.rast</a>
</em>

<h2>AUTHORS</h2>

Jianping Xu, Scott Madry, Rutgers University<br>
Markus Neteler

<!--
<p>
<i>Last changed: $Date$</i>
-->
